package com.eisula.sc.database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "t_deporte")
@Proxy(lazy = false)
public class Deporte {

	private int id;
	private String nombre;
	private boolean instructor;
	private boolean estudiante;

	private Deporte deporteId;

	// --------------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// --------------------------------------------------------------------------------

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	// --------------------------------------------------------------------------------

	public boolean comoInstructor() {
		return instructor;
	}

	public void setInstructor(boolean instructor) {
		this.instructor = instructor;
	}

	// --------------------------------------------------------------------------------

	public boolean comoEstudiante() {
		return estudiante;
	}

	public void setEstudiante(boolean estudiante) {
		this.estudiante = estudiante;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Deporte getDeporteId() {
		return deporteId;
	}

	public void setDeporteId(Deporte deporteId) {
		this.deporteId = deporteId;
	}

	// --------------------------------------------------------------------------------

}
